package org.shiro.model;

import java.util.HashSet;
import java.util.Set;

public class Module {
	/**
	 * 权限
	 */
	private Integer mid;

	/**
	 * 
	 */
	private String mname;

	private Set<Role> roles = new HashSet<Role>();

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	/**
	 * 权限
	 * 
	 * @return mid 权限
	 */
	public Integer getMid() {
		return mid;
	}

	/**
	 * 权限
	 * 
	 * @param mid 权限
	 */
	public void setMid(Integer mid) {
		this.mid = mid;
	}

	/**
	 * 
	 * @return mname
	 */
	public String getMname() {
		return mname;
	}

	/**
	 * 
	 * @param mname
	 */
	public void setMname(String mname) {
		this.mname = mname == null ? null : mname.trim();
	}
}